NotificationConfig

constructor(@DrawableRes smallIcon: Int, @DrawableRes largeIcon: Int)

Notification Configuration object.

Parameters

smallIcon

Resource-Id for the Notification Small icon.

Guideline: Notification small icon should be flat, pictured face on, and must be white on a transparent background.

largeIcon

Resource-Id for the Notification Large Icon


constructor(@DrawableRes smallIcon: Int, @DrawableRes largeIcon: Int, @ColorRes notificationColor: Int, isMultipleNotificationInDrawerEnabled: Boolean)

Notification Configuration object.

Since

12.0.00

Parameters

smallIcon

Resource-Id for the Notification Small icon.

Guideline: Notification small icon should be flat, pictured face on, and must be white on a transparent background.

largeIcon

Resource-Id for the Notification Large Icon.

notificationColor

Set the color for notification.

isMultipleNotificationInDrawerEnabled

By default, the SDK shows only one notification at a given point in time, existing notification is updated with the new notification. If set to true new notifications would be shown separately.


constructor(@DrawableRes smallIcon: Int, @DrawableRes largeIcon: Int, @ColorRes notificationColor: Int, isMultipleNotificationInDrawerEnabled: Boolean, isDirectPostingForHeadsUpEnabled: Boolean)
constructor(@DrawableRes smallIcon: Int, @DrawableRes largeIcon: Int, @ColorRes notificationColor: Int, isMultipleNotificationInDrawerEnabled: Boolean, isBuildingBackStackEnabled: Boolean, isLargeIconDisplayEnabled: Boolean)


constructor(@DrawableRes smallIcon: Int, @DrawableRes largeIcon: Int, @ColorRes notificationColor: Int, isMultipleNotificationInDrawerEnabled: Boolean, isBuildingBackStackEnabled: Boolean, isLargeIconDisplayEnabled: Boolean, isDirectPostingForHeadsUpEnabled: Boolean)

Parameters

smallIcon

Resource-Id for the Notification Small icon.

Guideline: Notification small icon should be flat, pictured face on, and must be white on a transparent background.

largeIcon

Resource-Id for the Notification Large Icon

notificationColor

Set the color for notification.

isMultipleNotificationInDrawerEnabled

By default, the SDK shows only one notification at a given point in time, existing notification is updated with the new notification. If set to true new notifications would be shown separately.

isBuildingBackStackEnabled

By default MoEngage SDK synthesis the back-stack from the manifest when redirecting user on push click. If set to false SDK would not synthesis a back-stack.

isLargeIconDisplayEnabled

false if you don't want to show the notification large icon on Android Lollipop and above devices, else true.

isDirectPostingForHeadsUpEnabled

If true, the rich notification will be posted directly for heads-up notification. By default, it will will be posted using reposting mechanism